<template>
  <h2>布局容器组件</h2>
    <div class="common-layout">
      <el-container>
        <el-header>
          <h1 style="background-color: #0aa1ed; color: white">后台管理系统</h1>
        </el-header>
        <el-container>
          <el-aside width="200px">
            <el-menu>
              <el-menu-item index="1">员工管理</el-menu-item>
              <el-menu-item index="2">轮播图管理</el-menu-item>
              <el-menu-item index="3">商品管理</el-menu-item>
            </el-menu>
          </el-aside>
          <el-main>
            <el-table :data="arr">
              <el-table-column type="index" label="编号"></el-table-column>
              <el-table-column prop="name" label="姓名"></el-table-column>
              <el-table-column prop="age" label="年龄"></el-table-column>
              <el-table-column prop="gender" label="性别"></el-table-column>
              <el-table-column prop="number" label="手机号"></el-table-column>
              <el-table-column prop="address" label="地址"></el-table-column>
            </el-table>
          </el-main>
        </el-container>
      </el-container>
    </div>
</template>

<script setup>
import {ref} from "vue";

const arr =ref([
    {name:"tom",age:18,gender:"男",number:"1515121651215",address:"湖北省武汉市达内"},
    {name:"tom",age:18,gender:"男",number:"1515121651215",address:"湖北省武汉市达内"},
    {name:"tom",age:18,gender:"男",number:"1515121651215",address:"湖北省武汉市达内"},
    {name:"tom",age:18,gender:"男",number:"1515121651215",address:"湖北省武汉市达内"},
    {name:"tom",age:18,gender:"男",number:"1515121651215",address:"湖北省武汉市达内"},
    {name:"tom",age:18,gender:"男",number:"1515121651215",address:"湖北省武汉市达内"}
]);
</script>

<style scoped>

</style>